package com.mcf.xiaolinju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mcf
 * @since 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Review implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 动态id
     */
    private Integer dynamicid;

    /**
     * 评论内容
     */
    private String reviewcontent;

    /**
     * 评论人的id
     */
    private Integer reviewid;

    /**
     * 评论时间
     */
    private LocalDateTime reviewtime;

    /**
     * 0：不删除  1：删除  2：审核 3：退回
     */
    private Integer reviewstate;
    /**
     * 审核id
     */
    private int approvalid;
    /**
     * 审核时间
     */
    private LocalDateTime approvaltime;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDynamicid() {
        return dynamicid;
    }

    public void setDynamicid(Integer dynamicid) {
        this.dynamicid = dynamicid;
    }

    public String getReviewcontent() {
        return reviewcontent;
    }

    public void setReviewcontent(String reviewcontent) {
        this.reviewcontent = reviewcontent;
    }

    public Integer getReviewid() {
        return reviewid;
    }

    public void setReviewid(Integer reviewid) {
        this.reviewid = reviewid;
    }

    public LocalDateTime getReviewtime() {
        return reviewtime;
    }

    public void setReviewtime(LocalDateTime reviewtime) {
        this.reviewtime = reviewtime;
    }

    public Integer getReviewstate() {
        return reviewstate;
    }

    public void setReviewstate(Integer reviewstate) {
        this.reviewstate = reviewstate;
    }

    public int getApprovalid() {
        return approvalid;
    }

    public void setApprovalid(int approvalid) {
        this.approvalid = approvalid;
    }

    public LocalDateTime getApprovaltime() {
        return approvaltime;
    }

    public void setApprovaltime(LocalDateTime approvaltime) {
        this.approvaltime = approvaltime;
    }

    @Override
    public String toString() {
        return "Review{" +
                "id=" + id +
                ", dynamicid=" + dynamicid +
                ", reviewcontent='" + reviewcontent + '\'' +
                ", reviewid=" + reviewid +
                ", reviewtime=" + reviewtime +
                ", reviewstate=" + reviewstate +
                ", approvalid=" + approvalid +
                ", approvaltime=" + approvaltime +
                '}';
    }
}
